﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MoviesWebsite.Models
{
    public class Tag
    {
        [Key]
        public string Value { get; set; }
        public List<Movie> Movies { get; set; }

        public static implicit operator Tag(string value)
        {
            return new Tag { Value = value };
        }
    }
}